#pragma once
//#include "../diplom.h"
#include "../tools/DGraphicObject.h"

class DLine: public DGraphicObject
{
protected:
	int x1, y1, x2, y2;

public:
	DLine(void);
	DLine(int x, int y, int xx, int yy);
	~DLine(void);

	void Draw(wxDC *dc);
	bool PointInside(wxPoint *pnt);
	float GetArea();
	void ConvertToText(wxString *str);
	wxPoint GetTopLeft(void);
	wxPoint GetBottomRight();
	void SetPosition(int _x1, int _y1, int _x2, int _y2);// { x1 = _x1; x2 = _x2; y1 = _y1; y2 = _y2; }
	int X1();// { return x1; }
	int Y1();// { return y1; }
	int X2();// { return x2; }
	int Y2();// { return y2; }
};

